﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Infrastructure;
using Enterprise.Model.CaiWu;
using Enterprise.Service.Caiwubu;
namespace Enterprise.UI.Web.Modules.CaiWuBu
{
    public partial class Chart : System.Web.UI.Page
    {
        int zbId = (int)Utility.sink("zbid", Utility.MethodType.Get, 0, 0, Utility.DataType.Int);
        int year = (int)Utility.sink("year", Utility.MethodType.Get, 0, 0, Utility.DataType.Int);
        string dw = (string)Utility.sink("dw", Utility.MethodType.Get, 0, 0, Utility.DataType.Str);
        protected void Page_Load(object sender, EventArgs e)
        {
            BindZb();
        }

        private void BindZb()
        {
            KHBService ks = new KHBService();
            string href = "";
            href = "js.aspx?zbid=" +zbId + "&dw=" +dw + "&year=" + year + "&showtable=1&width=680&height=380";
            ClientScript.RegisterStartupScript(this.ClientScript.GetType(), "sc", "<script>$(\"#chart\").empty();$(\"#chart\").append(\"<iframe src=\\\"" + href + "\\\" frameborder=\\\"0\\\" width=\\\"680px\\\" height=\\\"380px\\\" scrolling=\\\"no\\\"></iframe>\");</script>");
        }
    }
}